package com.ipkiss.incomespringboot.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author WuYongheng
 * @date 2024/5/12
 * @describe 基金交易详情表 实体类
 */
@Data
@TableName("fundDetails")
@Getter
@Setter
public class OperateEntity implements Serializable {
    @TableId()
    private int id;
    private int fundCode;
    private String fundName;
    private String operateType;
    private BigDecimal operateMoney;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date operateTime;

    @Override
    public String toString() {
        return "FundEntity{" +
                "id=" + id +
                ", fundCode=" + fundCode +
                ", fundName='" + fundName + '\'' +
                ", operateType='" + operateType + '\'' +
                ", operateMoney=" + operateMoney +
                ", operateTime=" + operateTime +
                '}';
    }
}
